<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<?php slot('options') ?>
    <a href="<?php echo url_for('requestTypes/index') ?>"><img src="/sf/sf_admin/images/list.png" alt="list" /></a><a href="<?php echo url_for('requestTypes/index') ?>"><?php echo __('Back to list') ?></a>
<?php end_slot() ?>

<form action="<?php echo url_for('requestTypes/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php echo $form->renderHiddenFields(false) ?>
          <?php if (!$form->getObject()->isNew()): ?>
            <?php echo link_to('Delete', 'requestTypes/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => __('Are you sure?'))) ?>
          <?php endif; ?>
          <input type="submit" value="<?php echo __('Save') ?>" />
        </td>
      </tr>
    </tfoot>
     <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <?php if (!$form->getObject()->isNew()): ?>
        <tr>
          <th><?php echo $form['id']->renderLabel() ?></th>
          <td>
            <?php echo $form->getObject()->id ?>
          </td>
        </tr>
      <?php endif; ?>
      <tr>
        <th><?php echo $form['description']->renderLabel() ?></th>
        <td>
          <?php echo $form['description']->renderError() ?>
          <?php echo $form['description'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
